package com.cema.manage.project.system.editor;

import com.cema.manage.framework.web.controller.BaseController;
import com.cema.manage.project.system.menu.domain.Menu;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/editor/test")
public class EditorController extends BaseController {

    private String prefix = "/editor/test";

    @RequiresPermissions("editor:test:view")
    @GetMapping()
    public String menu()
    {
        return prefix + "/editor";
    }

    @RequiresPermissions("editor:test:list")
    @GetMapping("/list")
    @ResponseBody
    public List<Menu> list()
    {

        return null;
    }



}
